# 第一遍 list1 =  [10,29,14,37,15] 交换最小值和list1[0] n = 0
# 第二遍 list1 = [10,14,29,37,15]  交换最小值与list1[1] n = 1
# 第三遍 list1 = [10,14,15,37,29]  交换最小值与list1[2] n = 2
# 第四遍 list1 = [10,14,15,29,37]  交换最小值与list1[3] n = 3
list1 = [29,10,14,37,15]
print(list1)
print()
n = 0
while n < len(list1)-1:
    i = 0
    while i < i+1:
                # len(list1)-1
        if list1[i+1] < list1[i]:
            list1[i],list1[i+1] = list1[i+1],list1[i]
        i += 1
    print(list1)
    n += 1

